package com.fenghongzhang.day002arouter;

import androidx.appcompat.app.AppCompatActivity;

import android.os.Bundle;
import android.view.View;

import com.alibaba.android.arouter.launcher.ARouter;

public class MainActivity extends AppCompatActivity {

    private static final String TAG = "MainActivity";

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);

        BlankFragment navigation = (BlankFragment) ARouter.getInstance().build("/day2/fg").navigation();

//        getSupportFragmentManager().beginTransaction().add()
    }

    public void click(View view) {
//        Intent intent = new Intent(this, Main2Activity.class);
//        startActivity(intent);
//        ARouter.getInstance().build("/feng/main1")
////                .withObject("user",new User("大明"))
////                .withString("name","xiaoming")
//                  .navigation();
        ARouter.getInstance().build("/shop/main1")
//                .withObject("user",new User("大明"))
//                .withString("name","xiaoming")
                .navigation();


    }
}
